package com.edu.common.utils;

import java.util.ResourceBundle;

/**
 * 项目参数工具类
 */
public class ResourceUtil {

	private static final ResourceBundle bundle = java.util.ResourceBundle.getBundle("config");

	/**
	 * @Title: isDebugModel
	 * @Description: 是否为开发调试模式
	 * @return
	 */
	public static final boolean isDebugModel(){
		return bundle.getString("isdebug").equalsIgnoreCase("true");
	}
	
	/**
	 * 获取是否为开发环境：true=关闭验证码验证，短信发送等，false=开启验证码验证，短信发送等
	 * @return
	 */
	public static final boolean isDev(){
		return bundle.getString("isDev").equalsIgnoreCase("true");
	}
	
	/**
	 * 获得sessionInfo名字
	 * @return
	 */
	public static final String getSessionInfoName() {
		
		return bundle.getString("sessionInfoName");
	}
	
	public static final String getESClusterName(){
		return bundle.getString("ESClusterName");
	}
	
	public static final String getESServerIp(){
		return bundle.getString("ESServerIp");
	}
	
	public static final String getESServerPort(){
		return bundle.getString("ESServerPort");
	}
	
	public static final String getESIndexName(){
		return bundle.getString("ESIndexName");
	}
	
	public static final String getESType(){
		return bundle.getString("ESType");
	}
}
